function matrix(layer,rows,cols){
	this.cols	=	cols;
	this.rows	= 	rows;
	this.layer  = 	layer; 
	this.matrix	= 	new Array();
	
	for (var i=0;i<rows;i++) {
		this.matrix[i] = new Array();
		for (var j=0;j<cols;j++){
			this.matrix[i][j] = new dungeonCell(layer,j,i);
		}
	}

	
}